home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / stdlib / RCS / MemData.c,v < prev    next >
Encoding:
Text File  |  1991-12-03  |  2.1 KB  |  98 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  sprited:1.1.1;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     88.08.20.21.03.49;  author ouster;  state Exp;
  11. branches 1.1.1.1;
  12. next     ;
  13.  
  14. 1.1.1.1
  15. date     91.12.02.20.35.27;  author kupfer;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24.  
  25. 1.1
  26. log
  27. @Initial revision
  28. @
  29. text
  30. @/* 
  31.  * MemData.c --
  32.  *
  33.  *    Contains variables that are shared among the various memory
  34.  *    allocation procedures.  They need to be in a separate file
  35.  *    in order to avoid unpleasant interactions with some old-
  36.  *    fashioned UNIX programs that define some or all of the malloc-
  37.  *    related stuff for themselves.  If the variables are tied to
  38.  *    a particular procedure, then the procedure will get linked in
  39.  *    whenever the variables are needed, even in the program has
  40.  *    defined its own version of that procedure.
  41.  *
  42.  * Copyright 1985, 1988 Regents of the University of California
  43.  * Permission to use, copy, modify, and distribute this
  44.  * software and its documentation for any purpose and without
  45.  * fee is hereby granted, provided that the above copyright
  46.  * notice appear in all copies.  The University of California
  47.  * makes no representations about the suitability of this
  48.  * software for any purpose.  It is provided "as is" without
  49.  * express or implied warranty.
  50.  */
  51.  
  52. #ifndef lint
  53. static char rcsid[] = "$Header: malloc.c,v 1.3 88/05/21 16:18:02 ouster Exp $ SPRITE (Berkeley)";
  54. #endif not lint
  55.  
  56. #include "memInt.h"
  57.  
  58. /*
  59.  * Info for binned allocation.  See memInt.h for details.
  60.  */
  61.  
  62. Address        memFreeLists[BIN_BUCKETS];
  63. int        mem_NumBlocks[BIN_BUCKETS];
  64. #ifdef MEM_TRACE
  65. int        mem_NumBinnedAllocs[BIN_BUCKETS];
  66. #endif
  67.  
  68. /*
  69.  * Info for large-block allocator.  See memInt.h for details.
  70.  */
  71.  
  72. Address        memFirst, memLast;
  73. Address        memCurrentPtr;
  74. int        memLargestFree = 0;
  75. int        memBytesFreed = 0;
  76. int        mem_NumLargeBytes = 0;
  77. int        mem_NumLargeAllocs = 0;
  78. int        mem_NumLargeLoops = 0;
  79.  
  80. int        mem_NumAllocs = 0;
  81. int        mem_NumFrees = 0;
  82.  
  83. int        memInitialized = 0;
  84.  
  85. Sync_Lock    memMonitorLock;
  86. @
  87.  
  88.  
  89. 1.1.1.1
  90. log
  91. @Initial branch for Sprite server.
  92. @
  93. text
  94. @d24 1
  95. a24 1
  96. static char rcsid[] = "$Header: /sprite/src/lib/c/stdlib/RCS/MemData.c,v 1.1 88/08/20 21:03:49 ouster Exp $ SPRITE (Berkeley)";
  97. @
  98.